package com.brewdroid.model;


public class Adjunct implements Ingredient{
	
	private String purpose;

	private IngredientImpl ingredient;
	
	
	public Adjunct(String name, String description){
		ingredient = new IngredientImpl(name, description);
	}

	public Adjunct(String name, String description, String purpose){
		ingredient = new IngredientImpl(name, description);
	}
	
	public Adjunct()
	{
		ingredient = new IngredientImpl();
	}
	
	public String getPurpose() {
		return purpose;
	}

	public void setPurpose(String purpose) {
		this.purpose = purpose;
	}

	@Override
	public String getName() {
		return ingredient.getName();
	}

	@Override
	public String getDescription() {
		return ingredient.getDescription();
	}

	@Override
	public void setName(String name) {
		ingredient.setName(name);
		
	}

	@Override
	public void setDescription(String description) {
		ingredient.setDescription(description);
		
	}
	
	@Override
	public String toString()
	{
		StringBuilder sb = new StringBuilder();
		sb.append("Name: "+ingredient.getName()+"\n");
		sb.append("Description: "+ingredient.getDescription() + "\n");
		sb.append("Purpose: "+ purpose+"\n");
		return sb.toString();
	}
}
